﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HomePicLists.ascx.cs" Inherits="HomePicLists" %>								  							  
								  <DIV id=demo style="OVERFLOW: hidden; WIDTH: 665px; HEIGHT: 128px" align=left>
  <TABLE width=650 height=128 border=0  align=center cellPadding=0 cellspacing="0" cellspace="0">
    <TBODY>
      <TR> 
        <TD id=demo1 vAlign=top> 
          <TABLE width=650 height=128 cellPadding=0 cellSpacing=0>
            <TBODY>
              <TR align=middle>
			   
			   <asp:Repeater ID="Repeater1" runat="server">
			   <ItemTemplate>
                <TD width="130" valign="top">
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <tr>
                                                <td><div align="center">
                                                  <table width="129" height="98" border="0" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                      <td bgcolor="#E6E6E6"><div align="center"><a href="show.aspx?nid=<%#Eval("news_id") %>" target="_blank" ><img src="<%#Eval("TitlePic")%>" width="123" height="92"  border="0"/></a></div></td>
                                                    </tr>
                                                  </table>
                                                </div></td>
                                              </tr>
                                              <tr>
                                                <td height="30"><div align="center"><a href="show.aspx?nid=<%#Eval("news_id") %>" target="_blank" title="<%#Eval("title") %>"><%#LeftString(Eval("title"),8) %></a></div></td>
                                              </tr>
                                            </table>
                </TD>
                <TD width="20">&nbsp;</TD>
                </ItemTemplate>
				</asp:Repeater>
			
            </TBODY>
          </TABLE> 
        </TD>
        <TD id=demo2 vAlign=top></TD>
      </TR>
    </TBODY>
  </TABLE>
   </DIV>
<SCRIPT>
      var speed = 30

      demo2.innerHTML = demo1.innerHTML

      function Marquee1() {
          if (demo2.offsetWidth - demo.scrollLeft <= 0)
              demo.scrollLeft -= demo1.offsetWidth
          else {
              demo.scrollLeft++
          }
      }
      var MyMar1 = setInterval(Marquee1, speed)
      demo.onmouseover = function () { clearInterval(MyMar1) }
      demo.onmouseout = function () { MyMar1 = setInterval(Marquee1, speed) }
  </SCRIPT>